namespace Apps.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("PUB_EQUIPMENT")]
    public partial class PUB_EQUIPMENT
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public PUB_EQUIPMENT()
        {
            DEV_CHECK = new HashSet<DEV_CHECK>();
            DEV_COME = new HashSet<DEV_COME>();
            DEV_EXPERIENCE = new HashSet<DEV_EXPERIENCE>();
            DEV_GREASE = new HashSet<DEV_GREASE>();
            DEV_MEMORABILIA = new HashSet<DEV_MEMORABILIA>();
            DEV_SPARE = new HashSet<DEV_SPARE>();
            DEV_TECHNICAL = new HashSet<DEV_TECHNICAL>();
        }
        [Key]
        [StringLength(40)]
        public string EQUIPMENT_ID { get; set; }

        [Required]
        [StringLength(50)]
        public string EQUIPMENT_NAME { get; set; }

        [Required]
        [StringLength(50)]
        public string MODEL { get; set; }

        public DateTime FDATE { get; set; }

        [Required]
        [StringLength(50)]
        public string PRODOCTION { get; set; }

        [Required]
        [StringLength(50)]
        public string FCODE { get; set; }

        [Required]
        [StringLength(50)]
        public string COMPANY { get; set; }

        [Required]
        [StringLength(50)]
        public string PLACE { get; set; }

        [Required]
        [StringLength(50)]
        public string FIXING_TYPE { get; set; }

        public DateTime USED_DATE { get; set; }

        public int CYCLE { get; set; }

        [StringLength(40)]
        public string DEPARTMENT_ID { get; set; }

        [StringLength(40)]
        public string USER_ID { get; set; }

        public DateTime? UPDATE_DATE { get; set; }

        [StringLength(20)]
        public string KKS_CODE { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<DEV_CHECK> DEV_CHECK { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<DEV_COME> DEV_COME { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<DEV_EXPERIENCE> DEV_EXPERIENCE { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<DEV_GREASE> DEV_GREASE { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<DEV_MEMORABILIA> DEV_MEMORABILIA { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<DEV_SPARE> DEV_SPARE { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<DEV_TECHNICAL> DEV_TECHNICAL { get; set; }

    }
}
